package com.fengye.lock.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fengye.lock.db.domain.UserAccount;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.fengye.lock.db.domain.UserAccount
 */
public interface UserAccountMapper extends BaseMapper<UserAccount> {

    int updateAmountById(@Param("money")Double money, @Param("id")Integer id);
    int updateAmountByIdAndVersion(@Param("money")Double money, @Param("id")Integer id,@Param("version")Integer version);

    UserAccount selectByUserIdLock(@Param("userId") Integer userid);
    int updateAmountLock(@Param("money")Double money, @Param("id")Integer id);

}




